package com.cwh.service;

import java.util.List;

import com.cwh.entity.Employee;
import com.cwh.entity.EmployeeCustom;

public interface EmployeeService {
	//根据用户姓名查找用户
	public Employee findEmployeeByName(String username);
	
	//查找所有用户
	public List<Employee> findUserList();
	
	//用户列表自连接查上级名字联表查角色
	public List<EmployeeCustom> findUserAndRoleList();
	//添加用户信息,给予默认角色与权力
	public void addEmployeeAssignRoleAndPermission(Employee employee);
	
	//通过id查找用户
	public Employee findEmployeeById(Long id);

}
